package com.xgpro.pc.rolemanage.service;

import com.xgpro.common.results.ResponseResult;
import com.xgpro.domain.rolemanage.entity.Permissions;

import java.util.List;


/**
 * @program: xgpro__dev
 * @Description: 权限
 * @Author: wangyang
 * @Date: 2019-09-15 10:09
 **/
public interface PermissionsService {

    public ResponseResult addPermissions(Permissions permissions);

    public ResponseResult deletePermissions(List<Integer> ids);

    public ResponseResult updatePermissions(Permissions permissions);

    public ResponseResult getPermissions(Integer id, Integer pageNum, Integer pageSize,Integer type,String name,Integer pid );

    List<Integer> findPerIdByRoleId(Integer roleId,Integer pid);
}